package org.gaia.j3d.ui.views;



import javax.media.j3d.BranchGroup;

public class Content3D extends BranchGroup{
	
	BranchGroup cube;
	
	BranchGroup branch = null;
	BranchGroup branch1 = null;
	BranchGroup branch2 = null;
	BranchGroup branch3 = null;
	BranchGroup branch4 = null;
	BranchGroup branch5 = null;
	BranchGroup branch6 = null;
	BranchGroup branch7 = null;
	BranchGroup branch8 = null;
	BranchGroup branch9 = null;
	BranchGroup branch10 = null;
	BranchGroup branch11 = null;
	BranchGroup branch12 = null;
	
	public Content3D(){
		setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);
		setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
		cube = new BranchGroup();
		cube.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);
		cube.setCapability(BranchGroup.ALLOW_DETACH);
		//cube.addChild(new ColorCube(0.1));
		/*Database db = new Database();
		db.open();
		List lBeans = db.getDrill();
		for (int i = 0; i < lBeans.size(); i++) {
			Drill3D drill = (Drill3D) lBeans.get(i);
			cube.addChild(drill.getDrill3D());
		}
		db.close();*/
		
		
		addChild(cube);
	}
	
	
	public void addVRML(){		
		//addChild(branch);
		addChild(branch1);
		addChild(branch2);
		addChild(branch3);
		addChild(branch4);
		addChild(branch5);
		addChild(branch6);
		addChild(branch7);
		addChild(branch8);
		addChild(branch9);
		addChild(branch10);
		addChild(branch11);
		addChild(branch12);
	}
}

